﻿@{
    ViewBag.Title = "Reservar";
}

<h2>Reservar</h2>

@Html.Label("", (string)ViewBag.vaga)

<div>
    Andar 1:

    <table border=0 width=450>
        <tr>
            <td align="center">
                <map name="mapa1">
                    @*<area id="vaga16" alt="Vaga 16" href=@Url.Action("Reservar", new { vaga = "Vaga 16" }) shape="RECT" coords="160,160,270,218">
                    <area id="vaga17" alt="Vaga 17" href=@Url.Action("Reservar", new { vaga = "Vaga 17" }) shape="RECT" coords="165,225,270,290">*@

                    @foreach (var Vaga in ViewBag.Vagas)
                    {
                        <area alt=@Vaga.Key href=@Url.Action("Reservar", new { vaga = @Vaga.Key }) shape="RECT" coords=@Vaga.Value>
                    }

                </map>
                <img src="~/img/pav01.jpg" width="1000" height="800" alt="Mapa de imagens. Clique em cada uma das vagas." border="1" usemap="#mapa1">
                <br>
                Clique na vaga para escolher!
            </td>
        </tr>
    </table> 
</div>